/**
 * @description 模拟数据接口
 */

class MockService {
    booksList=[{
     
        title: "图书批发清仓书特价正版书公益捐书单位学校图书馆咖啡馆阅览室便宜书籍大人小说文学名著儿童课外书出版社直供库存书二手旧书书店",
        price: "8.00",
        style: "children",
        author: "Tom.ajax",
        press: "中国湖南出版社",
        src: "https://img.alicdn.com/imgextra/i1/111498885/O1CN01p9qVwc2FVNXcKylOt_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "图书批发清仓书特"
      }, {
       

        title: "【当当网 正版书籍】盖洛普优势识别器2.0 现在发现你的优势 个性化行动指南帮助发挥优势 连续8年亚马逊畅销榜前十 德鲁克",
        price: "137.40",
        style: "children",
        author: "Tom.ajax",
        press: "中国湖南出版社",
        src: "https://img.alicdn.com/imgextra/i4/33010900/O1CN01TWi9xD1IWF2IGS6kg_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "【当当网 正版书"
      }, {
       
        title: "今天我是升旗手 黄蓓佳倾情小说系列8-9-10-12-15岁三四五六年级我要做个好孩子作者儿童文学读物寒暑假学校推荐课外阅读经典书籍",
        price: "18.80",
        style: "children",
        author: "Tom.ajax",
        press: "中国湖南出版社",
        src: "https://img.alicdn.com/imgextra/i1/14789935/O1CN01m0a4d72NGHbYXj4gu_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "今天我是升旗手 "
      }, {
       
        title: "【当当网 正版书籍】我离开之后 WHAT TO DO WHEN I'M GONE治愈励志绘本中文版 一个母亲给女儿的人生指南 蔡依林 张钧甯感动",
        price: "75.90",
        style: "children",
        author: "Tom.ajax",
        press: "中国湖南出版社",
        src: "https://img.alicdn.com/imgextra/i3/33010900/O1CN01D2qWHB1IWFCIUDnAN_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "【当当网 正版书"
      }, {
       
        title: "新华书店正版 心流 优体验心理学 心流书籍米哈里契克森米哈赖 心理学研究积极心理学人际交往励志成功社会心理学与生活入门 中信",
        price: "33.80",
        style: "children",
        author: "Tom.ajax",
        press: "中国湖南出版社",
        src: "https://img.alicdn.com/imgextra/i4/111131158/O1CN01syae601KQPHprNywy_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "新华书店正版 心"
      }, {
       
        title: "【选4本24元】正版 百万英镑 英磅 马克吐温短篇小说集选 初中生小学生课外必读物8-9-10-12-15周岁少儿童书籍四五六年级阅读图书",
        price: "13.80",
        style: "children",
        author: "Tom.ajax",
        press: "中国湖南出版社",
        src: "https://img.alicdn.com/imgextra/i4/30054067/O1CN019WnerT1fujRPOdBSw_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "【选4本24元】"
      }, {
       
        title: "限量正版1-20卷版哆啦a梦机器猫漫画书全套三四五六年级小叮当剧场珍藏版儿童动漫绘本套装日本卡通画超长篇吉林美术书本书籍故事A",
        price: "210.00",
        style: "children",
        author: "Tom.ajax",
        press: "中国湖南出版社",
        src: "https://img.alicdn.com/imgextra/i4/30873714/O1CN012jDCav1dJ3iFZzXyy_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "限量正版1-20"
      }, {
       
        title: "全套6册 人教版四年级下册快乐读书吧正版十万个为什么灰尘的旅行 小学生必读课外书阅读书籍米伊林看看我们的地球 人民教育出版社",
        price: "189.40",
        style: "children",
        author: "Tom.ajax",
        press: "中国湖南出版社",
        src: "https://img.alicdn.com/imgextra/i4/32684338/O1CN01YqzRj71huqrs1k4BA_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "全套6册 人教版"
      }, {
       
        title: "正版3册高情商口才速成为人三会全套装口才三绝修心三不如何提升说话技巧书籍让自己别输在不会表达上人际交往会说话的书幽默沟通",
        price: "105.00",
        style: "children",
        author: "Tom.ajax",
        press: "中国湖南出版社",
        src: "https://img.alicdn.com/imgextra/i3/27766371/O1CN01GsMDVy1wvy2O1D7zw_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版3册高情商口"
      }, {
       
        title: "宝宝巴士图书猴子警长探案记第三辑儿童悬疑侦探推理小说探案冒险趣味推理故事小学生1~2年级注音版漫画书课外阅读书籍文学读物",
        price: "33.80",
        style: "children",
        author: "Tom.ajax",
        press: "中国湖南出版社",
        src: "https://img.alicdn.com/imgextra/i1/1164490191/O1CN01Irdmxr1DHWKz4mNeg_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "宝宝巴士图书猴子"
      }, {
       
        title: "小恐龙米诺斯想要一个小宠物二年级正版绘本 伍特·克劳泽著 小学生课外书必读阅读书籍 本狮书店百班千人39期 南京大学出版社KQ39",
        price: "26.00",
        style: "children",
        author: "Jack.willin",
        press: "中国四川成都出版社",
        src: "https://img.alicdn.com/imgextra/i1/32684338/O1CN01yQuAtA1huqr1BN5wj_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "小恐龙米诺斯想要"
      }, {
       
        title: "全10册青少年励志书 成长书 你不努力谁也给不了你想要的生活你若不勇敢替你坚强你的努力终将成就自己戒了吧拖延症初中小学生读物",
        price: "298.00",
        style: "children",
        author: "Jack.willin",
        press: "中国四川成都出版社",
        src: "https://img.alicdn.com/imgextra/i1/103562228/O1CN01Ghfsm21SKT7dh8qlO_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "全10册青少年励"
      }, {
       
        title: "包邮 幸福的方法 哈佛大学受欢迎的幸福课公开课 李银河 素黑 苏岑 等推荐 中信出版社图书 畅销书 正版书籍",
        price: "17.90",
        style: "hot",
        author: "Jack.willin",
        press: "中国四川成都出版社",
        src: "https://img.alicdn.com/imgextra/i4/32095452/O1CN01iIfG4S1q93w5lIYGa_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "包邮 幸福的方法"
      }, {
       
        title: "演讲的力量 TED掌门人克里斯安德森 如何让公众表达变成影响力 徐小平李开复联合推荐中信出版社图书 TED授权官方演讲指南",
        price: "29.00",
        style: "hot",
        author: "Mr.zhang",
        press: "中国四川成都傻帽出版社",
        src: "https://img.alicdn.com/imgextra/i2/45477055/O1CN01IEc3d521zExqdORX5_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "演讲的力量 TE"
      }, {
       
        title: "新华书店正版 洞察 精确观察和有效沟通的艺术 艾美赫曼 著 洞察的艺术 TED演讲点击破3000万次 中信出版社出版 正版书籍",
        price: "36.54",
        style: "hot",
        author: "Mr.zhang",
        press: "中国四川成都傻帽出版社",
        src: "https://img.alicdn.com/imgextra/i2/111131158/O1CN01LxV76U1KQPMogj0L7_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "新华书店正版 洞"
      }, {
       
        title: "【特价专区】正版 卡耐基写给女人的一生幸福忠告 女性励志书籍 提高自我修养气质情商读物心灵鸡人生智慧心理学青春励志书",
        price: "9.00",
        style: "hot",
        author: "Mr.zhang",
        press: "中国四川成都傻帽出版社",
        src: "https://img.alicdn.com/imgextra/i1/100765371/O1CN01Jm7A5S1pXxy2TB9Na_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "【特价专区】正版"
      }, {
       
        title: "精装全译本无删减 莫泊桑短篇小说故事集 欧亨利短篇小说集 契诃夫短篇小说选 契科夫中短篇全集中文版书籍青少年初中生羊脂球",
        price: "72.00",
        style: "hot",
        author: "Mr.zhang",
        press: "中国四川成都傻帽出版社",
        src: "https://img.alicdn.com/imgextra/i1/106116139/O1CN01N5T4S91vDi2BgfTkv_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "精装全译本无删减"
      }, {
       
        title: "拥抱你的内在小孩 以爱疗愈内在的恐惧 十周年纪念版 心理学图书经典 克里希那南达阿曼娜著 方志华",
        price: "33.30",
        style: "hot",
        author: "Mr.ge",
        press: "中国四川成都千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/15149488/O1CN01D1zD8i2JxYbmKWa1m_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "拥抱你的内在小孩"
      }, {
       
        title: "逆商10册精进一开口就让人喜欢你深度社交 戒了吧拖延症富人逆转思维人生阅读十本书正能量励志培养商业逻辑快速积累财富正版书籍",
        price: "350.00",
        style: "hot",
        author: "Mr.ge",
        press: "中国四川成都千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/40543961/O1CN01pNYuqL1f8BWhdzNa2_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "逆商10册精进一"
      }, {
       
        title: "优婆塞戒经中国佛教经典宝藏白话简体版白话精华大藏经修学佛引导书佛陀在家戒经典佛教入门书籍宗教哲学书籍RMDF",
        price: "68.00",
        style: "hot",
        author: "Mr.ge",
        press: "中国四川成都千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/1995030101/O1CN016P7f431CcIjHRYFXW_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "优婆塞戒经中国佛"
      }, {
       
        title: "4册精装版 人间失格 罗生门 我是猫 月亮与六便士 太宰治正版包邮 夏目漱石芥川龙之介 外国日本小说初高中学生课外畅销排行榜书籍",
        price: "124.00",
        style: "hot",
        author: "Mr.ge",
        press: "中国四川成都千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/108423649/O1CN01x0j0O71cpHpZWPCyu_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "4册精装版 人间"
      }, {
       
        title: "全套5册 格局正版+眼界+情商+策略+见识书格局逆袭决定结局正能量经管励志初心自我提升自律成功思维高度人生必读书籍畅销书排行榜",
        price: "180.00",
        style: "hot",
        author: "Mr.ge",
        press: "中国四川成都千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/114065198/O1CN01WNHRjm1oGjSdsJ5eS_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "全套5册 格局正"
      }, {
       
        title: "茶馆 老舍正版书籍 人民文学出版社 推荐阅读丛书 高中生课外阅读书籍书籍 语文老师推荐版本包邮",
        price: "18.00",
        style: "hot",
        author: "Mr.ge",
        press: "中国四川成都千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i2/118013628/O1CN01abQGse1cffZOUqFAl_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "茶馆 老舍正版书"
      }, {
       
        title: "意志力 罗伊鲍迈斯特 著 增强自律 克服拖延 战胜诱惑 中信出版社图书 畅销书 正版书籍",
        price: "27.30",
        style: "hot",
        author: "Mr.ge",
        press: "中国四川成都千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/32095452/O1CN01j5mrDE1q93wbMVeSk_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "意志力 罗伊鲍迈"
      }, {
       
        title: "【孙俪微博推荐儿童绘本】太阳想吃冰激凌精装儿童图画书硬皮启蒙认知3-4-5-6岁幼儿园读物亲子阅读太阳想吃冰淇淋绘本中福会出版",
        price: "32.80",
        style: "hot",
        author: "Mr.ge",
        press: "中国四川成都千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i2/108073963/O1CN011HHG7n1f96HqdUNYk_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "【孙俪微博推荐儿"
      }, {
       
        title: "梦的解析 弗洛伊德正版心理学入门书籍畅销书排行榜中国华侨出版社出品畅销书精神分析学说和潜意识理论的必读书基础社会心理学",
        price: "39.00",
        style: "skill",
        author: "Mr.ge",
        press: "中国四川成都千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/27766371/O1CN01JIR0Bu1wvy4izEcHV_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "梦的解析 弗洛伊"
      }, {
       
        title: "中国商界风云人物全8册 马云我可以没有对手马化腾王石任正非传雷军史玉柱冯仑李嘉诚创业企业管理成功励志自传记大全套畅销书籍",
        price: "360.00",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/16391187/O1CN01HGMaAQ1KdgjHbpgu3_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "中国商界风云人物"
      }, {
       
        title: "西顿野生动物故事集全套共8册 3-4-5-6-8岁经典动物文学名著 小学生一二三四年级课外阅读书籍 老师推荐必读书西顿动物记彩图注音",
        price: "200.00",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/31352071/TB2qEFZlv1TBuNjy0FjXXajyXXa_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "西顿野生动物故事"
      }, {
       
        title: "《厚黑学-中国最成功的心理术与处世术》成功励志高情商做人做事成功励志书籍 厚黑学看这本就够了",
        price: "39.80",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i2/1715630188/O1CN01kGv4Ue1DG98uBLM6V_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "《厚黑学-中国最"
      }, {
       
        title: "月亮和六便士正版 六个便士 月亮与六便士 正版毛姆畅销书 精装书 小说原著文学书籍 无删减原版出版社原著名著图书读物",
        price: "38.00",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/17580683/O1CN01oyrnoi1GurFO6pPS0_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "月亮和六便士正版"
      }, {
       
        title: "演讲词(值全彩白金版)版演讲书受欢迎的演讲与口才秘术训练实用演讲词大全说话的艺术 查看标题打分",
        price: "68.00",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/114084879/O1CN01ew7bKn1lud20MjWVE_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "演讲词(值全彩白"
      }, {
       
        title: "宝宝巴士图书经典英文儿歌宝宝手指点读发声演奏书1-2-3岁儿童中英双语绘本早教学习亲子睡前共读互动玩具翻翻书益智启蒙早教机",
        price: "176.00",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/1164490191/O1CN01RmRZlq1DHWM2ozYE9_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "宝宝巴士图书经典"
      }, {
       
        title: "正版图书团购文艺社科名著小说学校图书馆公司阅览室馆配特价畅销书籍二手书优惠特价定制儿童书励志口才历史百科书单配货",
        price: "11.80",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/110097286/O1CN01eHudGX23h2Sy7RpxZ_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版图书团购文艺"
      }, {
       
        title: "官方正版 洛克菲勒写给儿子的38封信 孩子洛克菲洛38封家书诺克菲诺三十八封信家教育儿亲子书籍畅销书排行榜民主与建设出版社",
        price: "49.80",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/113737577/O1CN016UlueQ25qJgSfrCEa_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "官方正版 洛克菲"
      }, {
       
        title: "正版曹文轩纯美小说系列全套四五年级儿童文学草房子狗牙雨青铜葵花山羊不吃天堂草野风车细米马戏团红瓦黑瓦根鸟原著课外阅读书籍",
        price: "308.00",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/29342775/O1CN01NclxNI1WMzop4iUd2_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版曹文轩纯美小"
      }, {
       
        title: "正版现货包邮！玩儿 于谦相声作家 精装典藏版 郭论郭德纲作序未公开新章节相声界那些事现当代文学随笔书籍 博集天卷",
        price: "49.80",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/47377476/O1CN01KH08l32563aA1W1qV_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版现货包邮！玩"
      }, {
       
        title: "正版 别人不说你一定要懂的人情世故 社交礼仪书籍为人处事职场心理学 管理学书籍人际沟通说话厚黑学人际交往心理学成功励志书籍",
        price: "29.80",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/111889069/O1CN01U2JrnQ2GreUHR4xVA_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版 别人不说你"
      }, {
       
        title: "正版 爱的艺术弗洛姆 上海译文 刘福堂译 掌握爱的艺术亲密关系恋爱婚姻两性哲学 新华书店正版图书籍",
        price: "23.20",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/14789935/O1CN01Pxos0J2NGHeMD0633_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版 爱的艺术弗"
      }, {
       
        title: "哈利波特立体书中文珍藏版 正版乐乐趣世界名著经典童话 魔法学校3D立体书青少年小学生儿童阅读哈利波特童书魔法霍格沃茨故事书籍",
        price: "398.00",
        style: "skill",
        author: "Mr.liao",
        press: "中国重庆千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/106695131/O1CN01HI6wf91nm2orq0W9x_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "哈利波特立体书中"
      }, {
       
        title: "正版 2021全新改版 点点点0-3岁绘本儿童启蒙认知读物1-3-6周岁宝宝上幼儿园故事书亲子早教游戏书色彩启蒙国外获奖绘本杜莱作品",
        price: "49.80",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/108073963/O1CN01NuxRtC1f96I9KWVwF_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版 2021全"
      }, {
       
        title: "历史书籍42册一读就上瘾的中国史一看就停不下来的世界史中国史宋朝大清北洋军阀史大秦唐汉元明清晋史历史熬通宵也要读完的大隋史",
        price: "2266.60",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/111089241/O1CN01w0MoC42I8QkUGvpvC_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "历史书籍42册一"
      }, {
       
        title: "正版魔戒三部曲插图版全套3册中文版托尔金著奇幻史诗小说指环王书霍比特人小学生五年级六年级的书籍课外书",
        price: "149.00",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i2/119423831/O1CN01izTkkS1eAdvibZLav_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版魔戒三部曲插"
      }, {
       
        title: "繁星 春水 冰心 课本里的大师儿童文学作品中国经典文学名著三四五六年级中小学生课外阅读书籍10-12-15岁儿童读物 南京大学出版社",
        price: "28.00",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/106695131/O1CN01JSFZzr1nm2uQUjCDR_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "繁星 春水 冰心"
      }, {
       
        title: "正版包邮 镜子练习:21天创造生命的奇迹 （美）露易丝·海 心理自助书 简体中文版",
        price: "28.80",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/15149488/O1CN01XuD0Kl2JxYLpO0QRj_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版包邮 镜子练"
      }, {
       
        title: "六年级指定的课外书小学经典书籍全套3册老师推荐正版书目上册人教版桥包邮故宫博物院爸爸的计划人民教育出版社语文同步阅读",
        price: "56.00",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/99018732/O1CN01trlTzk2ENJ9DrdOUW_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "六年级指定的课外"
      }, {
       
        title: "思路决定出路正版 书籍 跨界思考逆转做人做事为人处世人际交往说话沟通技巧销售管理狼性社交职场创业经商谈判成功学全励志书籍",
        price: "45.00",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/57874671/O1CN01pjmi6b1kNMk9N2URG_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "思路决定出路正版"
      }, {
       
        title: "现货包邮 废都 书籍正版 贾平凹著 红楼梦 解人 现当代经典畅销长篇小说书 作家出版社",
        price: "50.00",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/103946893/O1CN01aHX5ZG20n2hGWxPwe_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "现货包邮 废都 "
      }, {
        title: "正版现货 有些弯路,最好永远别走 王奎 接地气的生活指导 心灵励志书籍青春成功励志书籍畅销书排行榜 成人哲学",
        price: "38.00",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/26863634/O1CN017OjoVQ1ciPszqQcZb_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版现货 有些弯"
      }, {
       
        title: "四年级阅读经典书目 全套9册 草原上的小木屋 青鸟秘密花园海底两万里总有一天会长大适合小学生阅读的课外书正版小学老师力荐",
        price: "116.60",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/114133045/O1CN01Frk1jf1YMeg5wjOE6_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "四年级阅读经典书"
      }, {
       
        title: "逻辑学入门(清晰思考理性生活的88个逻辑学常识) 格桑中国纺织出版社 简单的逻辑学 逻辑学导论 语言逻辑学基础教程黑格尔正版书籍",
        price: "42.80",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/111889069/O1CN01q25l4Q2GrebaYLYmp_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "逻辑学入门(清晰"
      }, {
       
        title: "世界名著百部全套世界经典文学名著精装全套100册 世界名著书籍套装 假如给我三天光明飘简爱红与黑等 畅销书籍外国名著经典正版",
        price: "8785.00",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/44263174/O1CN016c8feX1ZJjqH0iKkl_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "世界名著百部全套"
      }, {
       
        title: "别的国家都没有 陈志勇 美国图书馆协会杰出儿童图书 超现实主义力作 德国青少年文学奖绘本奖 爱心树",
        price: "69.80",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/246390058/O1CN01JCIePg1CIbg4NtaMg_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "别的国家都没有 "
      }, {
       
        title: "钱钟书作品集全套7种10册 管锥编+谈艺录+宋诗选注+围城人兽鬼+七缀集+槐聚诗存+写在人生边上人生边上的边上石语 三联书店书包邮",
        price: "500.00",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i4/55969128/O1CN01DKwY6D2HIg13vuHwc_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "钱钟书作品集全套"
      }, {
       
        title: "正版包邮 悲伤逆流成河 郭敬明 电影原著 流淌的美好时光 马天宇主演电视剧原著小说 现代 当代文学书籍 青春都市言情小说",
        price: "42.80",
        style: "sale",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i1/110271687/O1CN01WNamnz1OKgpikZuZh_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版包邮 悲伤逆"
      }, {
       
        title: "【特价专区】 不抱怨的世界 心态调整情绪管理自我提升处世智慧生活哲学书 成长心灵鸡汤成功励志书籍 成",
        price: "6.00",
        style: "super",
        author: "Xicheng Zhang",
        press: "中国四川广汉千锋教育出版社",
        src: "https://img.alicdn.com/imgextra/i3/100765371/O1CN01DhbScj1pXxxwRWFl5_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "【特价专区】 不"
      }, {
       
        title: "正版丹布朗书籍全套全集7册 达芬奇密码+地狱+失落的秘符+骗局+数字城堡+天使与魔鬼外国文学犯罪的侦探惊悚悬疑推理小说",
        price: "395.00",
        style: "super",
        author: "Yunyang Ge",
        press: "中国东三省出版社",
        src: "https://img.alicdn.com/imgextra/i2/110903959/O1CN01sHg8xX1f7GgzwQgxv_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "正版丹布朗书籍全"
      }, {
       
        title: "【精装无删减版】正版书 少年维特的烦恼 原版少年维特之烦恼 歌德 杨武能 世界文学名著 青少年课外读物 语文书目 原著包邮",
        price: "24.00",
        style: "super",
        author: "Yunyang Ge",
        press: "中国东三省出版社",
        src: "https://img.alicdn.com/imgextra/i3/114133045/O1CN0110IJg61YMefFvFM9n_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "【精装无删减版】"
      }, {
       
        title: "[4本24元]243页正版中华上下五千年 北京日报出版社 龚勋少儿正版书籍中国历史传说文化中国文明老师推荐读物",
        price: "19.80",
        style: "super",
        author: "Yunyang Ge",
        press: "中国东三省出版社",
        src: "https://img.alicdn.com/imgextra/i3/29054917/O1CN01FsoYJE1mC284kCZl4_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "[4本24元]2"
      }, {
       
        title: "精装珍藏版林汉达中国历史故事集小学版春秋故事五四年级东汉西汉三国志原著儿童文学中华上下五千年初中高中生历史书籍正版小学版",
        price: "59.00",
        style: "super",
        author: "Yunyang Ge",
        press: "中国东三省出版社",
        src: "https://img.alicdn.com/imgextra/i4/99018732/O1CN01PTK3En2ENJBJa0SYk_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "精装珍藏版林汉达"
      }, {
       
        title: "旗舰店正版 孩子,你是在为自己读书 正面管教 如何说孩子才会听 青春期叛逆期孩子教育 小学生课外阅读书籍 家庭成长家庭教育青春",
        price: "29.80",
        style: "super",
        author: "Yunyang Ge",
        press: "中国东三省出版社",
        src: "https://img.alicdn.com/imgextra/i2/96335670/O1CN01xZzq2C1rkuKPGeZ1S_!!0-saturn_solar.jpg_468x468q75.jpg_.webp",
        name: "旗舰店正版 孩子"
      }]
      
    UserList = [
    {userName:'admin' ,passWord:'123123',token:'5648631684',
    books:[
        {
            title: "图书批发清仓书特价正版书公益捐书单位学校图书馆咖啡馆阅览室便宜书籍大人小说文学名著儿童课外书出版社直供库存书二手旧书书店",
            price: "8.00",
            style:'children',
            src: "https://img.alicdn.com/imgextra/i1/111498885/O1CN01p9qVwc2FVNXcKylOt_!!0-saturn_solar.jpg_468x468q75.jpg_.webp"
        }, {
            title: "【当当网 正版书籍】盖洛普优势识别器2.0 现在发现你的优势 个性化行动指南帮助发挥优势 连续8年亚马逊畅销榜前十 德鲁克",
            price: "137.40",
            style:'children',
            src: "https://img.alicdn.com/imgextra/i4/33010900/O1CN01TWi9xD1IWF2IGS6kg_!!0-saturn_solar.jpg_468x468q75.jpg_.webp"
        }, {
            title: "今天我是升旗手 黄蓓佳倾情小说系列8-9-10-12-15岁三四五六年级我要做个好孩子作者儿童文学读物寒暑假学校推荐课外阅读经典书籍",
            price: "18.80",
            style:'children',
            src: "https://img.alicdn.com/imgextra/i1/14789935/O1CN01m0a4d72NGHbYXj4gu_!!0-saturn_solar.jpg_468x468q75.jpg_.webp"
        }, {
            title: "【当当网 正版书籍】我离开之后 WHAT TO DO WHEN I'M GONE治愈励志绘本中文版 一个母亲给女儿的人生指南 蔡依林 张钧甯感动",
            price: "75.90",
            style:'children',
            src: "https://img.alicdn.com/imgextra/i3/33010900/O1CN01D2qWHB1IWFCIUDnAN_!!0-saturn_solar.jpg_468x468q75.jpg_.webp"
        }, {
            title: "新华书店正版 心流 优体验心理学 心流书籍米哈里契克森米哈赖 心理学研究积极心理学人际交往励志成功社会心理学与生活入门 中信",
            price: "33.80",
            style:'children',
            src: "https://img.alicdn.com/imgextra/i4/111131158/O1CN01syae601KQPHprNywy_!!0-saturn_solar.jpg_468x468q75.jpg_.webp"
        }, {
            title: "限量正版1-20卷版哆啦a梦机器猫漫画书全套三四五六年级小叮当剧场珍藏版儿童动漫绘本套装日本卡通画超长篇吉林美术书本书籍故事A",
            price: "210.00",
            style:'children',
            src: "https://img.alicdn.com/imgextra/i4/30873714/O1CN012jDCav1dJ3iFZzXyy_!!0-saturn_solar.jpg_468x468q75.jpg_.webp"
        }
    ],
    src:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic2.16pic.com%2F00%2F21%2F45%2F16pic_2145895_b.jpg&refer=http%3A%2F%2Fpic2.16pic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1648369916&t=a485946347c2e658853d279b0d57acf2'}
]
    registerUser(userName,passWord){
        return new Promise(resolve =>{
            this.UserList.map(it=>{
                let m =it.userName === userName
                if(m){
                    resolve({
                        code:500,
                        data:'用户已存在'
                    })
                }else{
                    this.UserList=[{userName,passWord,token:Math.ceil(Math.random()*8999999999+1000000000),books:[],src:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic2.16pic.com%2F00%2F21%2F45%2F16pic_2145895_b.jpg&refer=http%3A%2F%2Fpic2.16pic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1648369916&t=a485946347c2e658853d279b0d57acf2'},... this.UserList]
                    resolve({
                        code:200,
                        data:'注册成功'
                    })
                }
            })
            
        })
    }
    checkUser(userName,passWord){
        // console.log(this.UserList);
        return new Promise(resolve =>{
            this.UserList.map(it => {
                let m =it.userName === userName
                if (m) {
                    let n =it.passWord === passWord
                    if (n) {
                     resolve({
                      code:200,
                      data:it
                  })
                }
              }
            })
                  resolve({
                    code:403,
                    data:'账号密码出错'
                  })
                
        })
    }
    user(userName){
        return new Promise(resolve => {
           this.UserList.map( it =>{
             if(it.userName === userName){
                resolve({
                    code:200,
                    data:it
                })
             }else{
                resolve({
                    code:403,
                    data:'用户账号不存在'
                })
             }
           })
        })
    }
    booksType(style){
        return new Promise(resolve => {
            let arr =[]
            this.booksList.map(it => {
                if(it.style === style){
                    arr.push(it)
                }
            })
            resolve({
                code:200,
                data:arr
            })
        })
    }

    getBooksList(pages,size){
        return new Promise(resolve =>{
            let _result = this.booksList.slice((pages-1)*size,size*pages)
            resolve({
                code: 200,
                data:{rows: _result, total: this.booksList.length}  
            })
        })

    }
        searchBook(title){
            return new Promise(resolve => {
                let arr =[]
                this.booksList.map(it => {
                    let m =it.title.indexOf(title)
                    if(m> 0){
                        arr.push(it)
                    }
                    return m
                })
                resolve({
                    code:200,
                    data:arr
                })
            })
        
}
    pushbooks(booksName,booksPrice,author,src){
        return new Promise(resolve => {
            let arr={
            title: "图书批发清仓书特价正版书公益捐书单位学校图书馆咖啡馆阅览室便宜书籍大人小说文学名著儿童课外书出版社直供库存书二手旧书书店",
            price: booksPrice,
            style: "children",
            author: author,
            press: "中国出版社",
            src,
            name: booksName
          }
          this.booksList.push(arr)
        resolve({
            code:200,
            data:'加入成功'
        })
        })
        
    }
}




export default new MockService()